package cn.liuhuan1.mongoDb.mongoDbImp;

import cn.liuhuan1.entity.ReturnResult;
import cn.liuhuan1.webModelBean.vo.ArticleCommentVo;

import java.util.List;

/**
 * @Auther: liuhuan
 * @Date: 2021/4/19 - 04 - 19 - 19:29
 * @Description:
 * @version: 1.0
 */
public interface MongoDbImp {

    /**
     * 插入单条
     * @param articleCommentVo
     */
    public void inser(ArticleCommentVo articleCommentVo);

    /**
     * 插入多条
     * @param articleCommentVoList
     */
    public void inserList(List<ArticleCommentVo> articleCommentVoList);

    /**
     * 查询
     * @param articleId
     * @return
     */
    public List<ArticleCommentVo> findAll(String articleId);

    /**
     * 更新点赞数
     * @param id
     * @param likeNumber
     */
    ReturnResult updateLikeNumber(String id, Integer likeNumber);

}
